from usr.window import Window
from usr.theme import Theme

class Dialog(Window):
    def __init__(self):
        super().__init__()
        self.__lasty = 16
        self.clear()
    
    def clear(self):
        self.draw_background()

    def show_info(self, msg):
        if self.__lasty > 223:
            self.clear()
            self.__lasty = 16
        self.__lasty = self.draw_text(16, self.__lasty, 223, 223, msg, Theme.THEME_FOREGROUND, Theme.THEME_BACKGROUND)
       

        
        
            